#!/bin/bash


for d in /home/mixagol/work/data/annotation_cluster_1K/NC_*; do

    NR=$(ls $d | grep ann | wc -l);
    S=$(find $d -type f -name 'results_best_1K.txt.gz' | wc -l);

    echo -e $(date +%s)"\t"$(cat $d/worker_hostname)"\t"$(($NR-$S))"\t"$S"\t"$NR"\t"$(ssh $(cat $d/worker_hostname) 'ps ax | grep '"$(basename $d)"' | grep -v grep | wc -l') >> $d/speed_1K.dump

done

